﻿using System;
using NDBGen.Descriptors.Columns.Tokens;
using NDBGen.Plugins.DataAccess;

namespace NDBGen.Plugins.Descriptors.Columns.Tokens
{
    [ColumnTokenCodeSnippetGenerator(typeof(PrimaryKeyTokenDescriptor))]
    public sealed class DotNetPrimaryKeyTokenCodeGenerator : DotNetColumnTokenCodeGeneratorBase<PrimaryKeyTokenDescriptor>
    {
        protected override Object[] GenerateColumnAttributeProperties()
        {
            return new Object[]
            {
                ColumnMetadataHelper.ColumnAttribute.IsPrimaryKey.True
            };
        }
    }
}